package org.example.clouddemo.recommend.feign;

import org.example.clouddemo.bean.common.entity.Order;
import org.example.common.response.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient(value = "service-order", path = "/api/admin/order")
public interface OrderFeignClient {

    @GetMapping("queryByUserId/{userId}")
    ApiResult <List<Order>>  getByUserId(@PathVariable Long userId);
}

